// MsiUtil.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"


int _tmain(int argc, _TCHAR* argv[])
{
	std::ostringstream oss;
	WORD w = 1033;
	oss << w << std::endl;
	std::stringbuf *pbuf = oss.rdbuf();
	std::string str = oss.str();
	const char* ss = str.c_str();
	//ss = pbuf->str();


	std::ostringstream oss2;
	std::string s = "1033";
	oss2 << s;
	std::string str2 = oss.str();
	const char* ss2 = str.c_str();


	LPCWSTR path = _T("E:\\temp\\v8.0_release\\printer\\essentials\\essentials.msi");
	LPCWSTR cmd = _T("INSTALLDIR=\"C:\\Program Files\\Kodak\" REBOOT=\"ReallySuppress\"  ARPSYSTEMCOMPONENT=1 ALLUSERS=2 DISABLEROLLBACK=0 DISABLEMEDIA=1 INSTALLLANGUAGE=1033");

	MsiSetInternalUI(INSTALLUILEVEL_NONE,NULL);
	//DWORD ret = MsiInstallProduct(path, cmd);
	return 0;
}

